package com.clkj.xiuzheng.pojo.shangcheng;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 *
 * @author yawang
 * @date Mon May 20 10:11:37 CST 2024
 */
@ApiModel( value ="t_xz_topicComment" )
@Table( name ="t_xz_topicComment" )
public class TopicComment  implements Serializable {



    @Id
   	@Column(name = "comment_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer commentId;

	/**
	 * 评论详情
	 */
   	@Column(name = "comment_detail" )
	@ApiModelProperty( value="评论详情")
	private String commentDetail;

	/**
	 * 评论人ID
	 */
   	@Column(name = "user_id" )
	@ApiModelProperty( value="评论人ID")
	private Integer userId;

	/**
	 * 评论时间
	 */
   	@Column(name = "comment_time" )
	@ApiModelProperty( value="评论时间")
	private String commentTime;

	/**
	 * 0表示以及评论 否则为评论的评论
	 */
   	@Column(name = "parent_id" )
	@ApiModelProperty( value="0表示以及评论 否则为评论的评论")
	private Integer parentId;

	/**
	 * 文章或视频ID
	 */
   	@Column(name = "topic_id" )
	@ApiModelProperty( value="文章或视频ID")
	private Integer topicId;
    /**
     * 文章或视频置顶
     */
    @Column(name = "is_top" )
    @ApiModelProperty( value="文章或视频ID")
    private Integer isTop;

   	@Transient
    private String userName;
   	@Transient
    private String userImg;
   	@Transient
    private String baikeTitle;

  public Integer getCommentId() {
    return commentId;
  }

  public void setCommentId(Integer commentId) {
    this.commentId = commentId;
  }


  public String getCommentDetail() {
    return commentDetail;
  }

  public void setCommentDetail(String commentDetail) {
    this.commentDetail = commentDetail;
  }


  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }


  public String getCommentTime() {
    return commentTime;
  }

  public void setCommentTime(String commentTime) {
    this.commentTime = commentTime;
  }


  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }


  public Integer getTopicId() {
    return topicId;
  }

  public void setTopicId(Integer topicId) {
    this.topicId = topicId;
  }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getBaikeTitle() {
        return baikeTitle;
    }

    public void setBaikeTitle(String baikeTitle) {
        this.baikeTitle = baikeTitle;
    }

    public Integer getIsTop() {
        return isTop;
    }

    public void setIsTop(Integer isTop) {
        this.isTop = isTop;
    }
}
